package com.edu.exam.enums.assessment;

import com.edu.exam.enums.core.BaseEnum;

/**
 * 执行模式枚举
 */
public enum ExecutionMode implements BaseEnum {
    SYNC("SYNC", "同步执行"),
    ASYNC("ASYNC", "异步执行"),
    SCHEDULED("SCHEDULED", "定时执行"),
    MANUAL("MANUAL", "手动执行"),
    AUTOMATIC("AUTOMATIC", "自动执行"),
    BATCH("BATCH", "批处理"),
    STREAM("STREAM", "流式处理"),
    REAL_TIME("REAL_TIME", "实时执行"),
    BACKGROUND("BACKGROUND", "后台执行"),
    IMMEDIATE("IMMEDIATE", "立即执行");

    private final String code;
    private final String description;

    ExecutionMode(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
